package main
import(
	"gutility"
	"fmt"
	//"time"
)


func errorHandler(err error) {
  if err != nil {
    fmt.Println(err.Error())
  }
}

func main(){
	var ta gutility.TotalAutomic
	ta.Value = 1;
	for i:=1;i<5;i++ {
		ta.Wg.Add(1)
		go gutility.IncrementValue2(&ta,i)
	}
	gutility.TestConn()
	//time.Sleep(5*time.Second)
	
	var cha = make(chan bool)
	go gutility.MsgTest()
	go gutility.MsgTest2(cha)
	<- cha
    go gutility.TestSelect()
    
	ta.Wg.Wait()
}